gtkdnd: Ensure we don't fold the drag icon into the cursor on wayland
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 19 Nov 2015 19:33:03 +0000 (20:33 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 19 Nov 2015 22:28:19 +0000 (23:28 +0100)
This is wrong by all accounts there, as we can do no tricks there to show
a "drag failed" animation, which is performed by the compositor itself
on wayland.

gtk/gtkdnd.c

index 42bf8f1187361852b5cbdba7937ca9ef1dd8f27e..d495ca9179aa1715978c93ad321b9ad70993a798 100644 (file)
@@ -786,7 +786,10 @@ gtk_drag_can_use_rgba_cursor (GdkDisplay *display,
                               gint        height)
 {
   guint max_width, max_height;
-  
+
+  if (GDK_IS_WAYLAND_DISPLAY (display))
+    return FALSE;
+
   if (!gdk_display_supports_cursor_color (display))
     return FALSE;